﻿namespace Clock.Models
{
    //如果好用，请收藏地址，帮忙分享。
    public class ListItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string ename { get; set; }
        /// <summary>
        /// 今开
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string value { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string originValue { get; set; }
    }

    public class Pankouinfos
    {
        /// <summary>
        /// 指标说明
        /// </summary>
        //public string indicatorTitle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        //public string indicatorUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<ListItem> list { get; set; }
    }

    public class OutMarketInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string increase { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ratio { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int update_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int timestamp { get; set; }
    }

    public class Basicinfos
    {
        /// <summary>
        /// 
        /// </summary>
        public string exchange { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 农业银行
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string stockStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string stock_market_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string stockCode { get; set; }
        /// <summary>
        /// 已收盘
        /// </summary>
        public string tradeStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tradeStatusCN { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logoType { get; set; }
    }

    public class AskinfosItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string askprice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string askvolume { get; set; }
    }

    public class BuyinfosItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string bidprice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bidvolume { get; set; }
    }

    public class DetailinfosItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string volume { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bsFlag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string formatTime { get; set; }
    }

    public class Update
    {
        /// <summary>
        /// 
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string realUpdateTime { get; set; }
        /// <summary>
        /// 北京时间
        /// </summary>
        public string timezone { get; set; }
        /// <summary>
        /// 北京
        /// </summary>
        public string shortZone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int time_diff { get; set; }
        /// <summary>
        /// 已收盘
        /// </summary>
        public string stockStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tradeStatus { get; set; }
        /// <summary>
        /// 已收盘
        /// </summary>
        public string tradeStatusCN { get; set; }
    }

    public class Cur
    {
        /// <summary>
        /// 
        /// </summary>
        public int time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ratio { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string increase { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string volume { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string avgPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string timeKey { get; set; }
        /// <summary>
        /// 1690.42万
        /// </summary>
        public string amount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int show { get; set; }
        /// <summary>
        /// 元
        /// </summary>
        public string unit { get; set; }
    }

    public class MarketDataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string p { get; set; }
    }

    public class NewMarketData
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> headers { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> keys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<MarketDataItem> marketData { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string maxPoints { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> cx { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> cxData { get; set; }
    }

    public class Tag_listItem
    {
        /// <summary>
        /// Level1基础行情
        /// </summary>
        public string desc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string imageUrl { get; set; }
    }

    public class FinanceReport
    {
        /// <summary>
        /// 预计于2025-03-29披露2024年度报告
        /// </summary>
        public string text { get; set; }
    }

    public class Ad_params
    {
        /// <summary>
        /// 
        /// </summary>
        public string pageNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pageSize { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string srcId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string relation { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string src { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string source { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string query { get; set; }
    }

    public class Url_xcx_params
    {
        /// <summary>
        /// 
        /// </summary>
        public string xcx_appkey { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string xcx_path { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string xcx_from { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string xcx_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string xcx_query { get; set; }
    }

    public class AccOpenData
    {
        /// <summary>
        /// 
        /// </summary>
        public string is_ad { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logo { get; set; }
        /// <summary>
        /// 上/深/北交所实时开户
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rdetail { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sdetail { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string urlType { get; set; }
        /// <summary>
        /// 开户
        /// </summary>
        public string button { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> labels { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Ad_params ad_params { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Url_xcx_params url_xcx_params { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ignore_click { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string mappID { get; set; }
    }

    public class ChartTabsItem
    {
        /// <summary>
        /// 分时
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string isK { get; set; }
        /// <summary>
        /// https://finance.pae.baidu.com/vapi/v1/getquotation?srcid=5353&pointType=string&group=quotation_minute_ab&query=601288&code=601288&market_type=ab&newFormat=1&name=农业银行&is_kc=0&finClientType=pc
        /// https://finance.pae.baidu.com/vapi/v1/getquotation?group=quotation_minute_ab&code=601288&finClientType=pc
        /// </summary>
        public string asyncUrl { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 
        /// </summary>
        public Pankouinfos pankouinfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OutMarketInfo outMarketInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Basicinfos basicinfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<AskinfosItem> askinfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<BuyinfosItem> buyinfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<DetailinfosItem> detailinfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Update update { get; set; }
        /// <summary>
        /// 东方财富
        /// </summary>
        public string provider { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Cur cur { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> adr_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string upDownStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public NewMarketData newMarketData { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Tag_listItem> tag_list { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string foreign_key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string releaseDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FinanceReport financeReport { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public AccOpenData accOpenData { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string isKc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string useWS { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<ChartTabsItem> chartTabs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string financeType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> noticeMsgList { get; set; }
    }

    public class StockRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public int ResultCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ResultNum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string QueryID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Result Result { get; set; }
    }

}
